package com.zjj.day2.test2;
/**
 * @author zhoujunjie
 * @desc TODO
 * @date 2025/4/18
 */
public class Father extends GrandFather {
    private String occupation;

    public Father(String name, int age, String occupation) {
        super(name, age);
        this.occupation = occupation;
    }

    public void getFather() {
        super.getGrandFather();
        System.out.println("职业：" + occupation);
    }
}    